package com.lesson8.bridge;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/8/29 21:50
 */
public class Client
{
    public static void main(String[] args)
    {
        Phone phone = new FoldedPhone(new XiaoMi());
        phone.open();
        phone.call();
        phone.close();
        System.out.println("-------------------------------------------");
        Phone phone2 = new FoldedPhone(new Vivo());
        phone2.open();
        phone2.call();
        phone2.close();
        System.out.println("-------------------------------------------");
        Phone phone3 = new UpRightPhone(new XiaoMi());
        phone3.open();
        phone3.call();
        phone3.close();
        System.out.println("-------------------------------------------");
        Phone phone4 = new UpRightPhone(new Vivo());
        phone4.open();
        phone4.call();
        phone4.close();
    }
}
